package com.surface.hao;

import com.surface.hao.sample.LinuxStyleScrollBarSample;

import javax.swing.*;
import java.util.Properties;

/**
 * @Description 启动的应用程序
 * @Date 2019/12/29
 * @Author songhao
 **/
public class LaunchMain {

    public static void main(String[] args) {
        try {
            // 创建一个属性文件对象
            Properties props = new Properties();
            props.put("linuxStyleScrollBar", "on");

            // 设置主题信息
            com.jtattoo.plaf.acryl.AcrylLookAndFeel.setCurrentTheme(props);
            // Select the Look and Feel
            UIManager.setLookAndFeel("com.jtattoo.plaf.graphite.GraphiteLookAndFeel");

            SwingUtilities.invokeLater(new Runnable() {
                @Override
                public void run() {
                    // Start the application
                    LinuxStyleScrollBarSample app = new LinuxStyleScrollBarSample();
                    app.setSize(1200, 800);
                    app.setLocationRelativeTo(null);
                    app.setVisible(true);
                }
            });
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }
}